home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 160 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: mail2news.demon.co.uk!harden.demon.co.uk
  2. From: Mark Harden <mark@harden.demon.co.uk>
  3. Newsgroups: comp.sys.m68k
  4. Subject: Re: Bus Error Handler for 68040
  5. Date: Sat, 27 Jan 96 10:55:29 GMT
  6. Organization: Private Node
  7. Message-ID: <9601271055.AA000wq@harden.demon.co.uk>
  8. References: <30FFE81F.4110@infinet.com>
  9. X-NNTP-Posting-Host: harden.demon.co.uk
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!harden.demon.co.uk
  12.  
  13. Paul Swetnam (pswetnam@infinet.com) wrote:
  14. : I am having difficulty writing a bus error handler for a 68040 processor 
  15. : because of the pipeline architecture used by the processor. The bus 
  16. : errors are trapped by my routine, but when I execute an RTE instruction 
  17. : to return from the exception, the processor often tries to re-run the bus 
  18. : access and re-triggers the same error. This results in an infinite loop.
  19. : The exact behavior of the processor depends on the instructions which 
  20. : come before and after the instruction causing the bus error (these 
  21. : instructions determine the state of the processor pipeline at the time 
  22. : the error occurs). I have managed to trap and handle bus error 
  23. : consistently only if I follow each instruction which may cause a bus 
  24. : error with a NOP instruction.
  25. : Does anyone have a good bus error handler for the 68040?
  26. : Will Koehler
  27. : Design Engineer
  28. : Aeroflex Lintek Corp.
  29.  
  30. As far as I remember you have to "tidy up" before the RTE.  The stack frame contains
  31. incomplete writes and all sorts of things.  I would suggest ou look at the NetBSD
  32. source code.  There is a bus error handler there.
  33.  
  34. Let me know if you need more.  I could send you the required module ?
  35.